package com.feri.rbacsys.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (ExportOrder)表实体类
 *
 * @author makejava
 * @since 2023-03-28 10:02:50
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_export_order")
public class ExportOrder{
    //序号
    private Integer id;
    //销售订单编号
    private String orderNum;
    //销售订单产品id
    private Integer productId;
    //出库类型 0:销售出库 1:采购退货出库
    private Integer type;
    //销售产品的价格
    private BigDecimal price;
    //销售产品的数量
    private Integer amount;
    //出库订单创建时间
    private Date ctime;
    //审核人id
    private Integer userId;
    //审核出库时间
    private Date exportDate;

    public ExportOrder(String orderNum) {
        this.orderNum = orderNum;
        this.ctime=new Date();
        this.type=0;
    }
}

